package com.ytc.position.mapper;

import com.ytc.position.model.Position;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PositionMapper {

    List<Position> getPosition(@Param("userId") Integer userId);

    void addPosition(Position position);

    void updatePosition(Position position);

    void deletePosition(@Param("positionId") Integer positionId);

    Position get(@Param("positionId") Integer positionId);
}
